package com.itfenghuang.service;

import com.itfenghuang.bean.Student;
import com.itfenghuang.mapper.StudentMapperImp;

import java.util.List;

public class StudentServiceImp {

   private StudentMapperImp mapper= new StudentMapperImp();



    /**
     * 根据条件查询学生
     * @param sname
     * @param sage
     * @return
     */
    public List<Student> getStus(String sname, String sage){
        List<Student> students = mapper.selectstus(sname, sage);
        return students;
    }

    /**
     * 添加
     */
    public void addStudent(Student stu){
        mapper.addStudent(stu);
    }
}


